home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 17452 < prev    next >
Encoding:
Text File  |  1996-08-05  |  628 b   |  37 lines

  1. Path: in2.uu.net!zdc!zippo!drn
  2. From: Clarence Chiang
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: A class with pointers to yet undeclared classes
  5. Date: 15 Apr 1996 10:51:46 -0700
  6. Organization: Zippo
  7. Sender: http@doc.zippo.com
  8. Message-ID: <4ku2bi$6c9@doc.zippo.com>
  9. NNTP-Posting-Host: doorstop.spiderisland.com
  10.  
  11. In article <4ksden$276@decaxp.HARVARD.EDU>, mueller@course1.HARVARD.EDU says...
  12. >
  13. >How do I convince the compiler that class B is going to be declared later?
  14. >
  15. >  Mark
  16. >  mueller@fas.harvard.edu
  17. >
  18. >
  19.  
  20. Forward declaration ...
  21.  
  22. example:
  23.  
  24. class A;
  25.  
  26. class B {
  27.  
  28.   A* pA;
  29. };
  30.  
  31. class A {
  32.  
  33. };
  34.  
  35. Clarence Chiang
  36. Spider Island Software
  37.